# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=audiofile
pkgver=0.3.6
pkgrel=0
arch="all"
url="https://audiofile.68k.org/"
pkgdesc="Silicon Graphics Audio File Library"
license="LGPL-2.1-or-later"
makedepends="linux-headers alsa-lib-dev"
source="https://audiofile.68k.org/$pkgname-$pkgver.tar.gz
	gcc8-build-fixes.patch"
subpackages="$pkgname-static $pkgname-dev $pkgname-libs $pkgname-doc"

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

build() {
	./configure \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="f9a1182d93e405c21eba79c5cc40962347bff13f1b3b732d9a396e3d1675297515188bd6eb43033aaa00e9bde74ff4628c1614462456529cabba464f03c1d5fa  audiofile-0.3.6.tar.gz
60837bcc9aa53d546708210e87a4f24db56c8a4b0c6896c8e39e0d213aafa15f59a65a60726e6abbf16681fc1fa6ca59cf1748a63caf5ff2652d55f10f62a976  gcc8-build-fixes.patch"
